package org.etl.kfrwe.controller;

import org.etl.kfrwe.bean.ScheduledTaskinfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class ScheduledTaskController {

    @RequestMapping("/scheduledtask/add")
    public ModelAndView add(ScheduledTaskinfo scheduledTaskinfo) {
        ModelAndView mv = new ModelAndView("scheduledtaskinfo/list");
        return mv;
    }

    @RequestMapping("/scheduledtask/modify")
    public ModelAndView modify(ScheduledTaskinfo scheduledTaskinfo) {
        ModelAndView mv = new ModelAndView("scheduledtaskinfo/modify");
        return mv;
    }

    @RequestMapping("/scheduledtask/delete")
    public ModelAndView delete(int taskId) {
        ModelAndView mv = new ModelAndView("scheduledtaskinfo/delete");
        return mv;
    }

    @RequestMapping("/scheduledtask/view")
    public ModelAndView view(int taskId) {
        ModelAndView mv = new ModelAndView("scheduledtaskinfo/view");
        return mv;
    }

    @RequestMapping("/scheduledtask/query")
    public ModelAndView query() {
        ModelAndView mv = new ModelAndView("scheduledtaskinfo/list");
        return mv;
    }
}
